﻿<script type="text/javascript">
    window.onload = function (e) {
        var connected = '@(ViewBag.Connected)'
        isConnected(connected);
    }
</script>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title</h1>
                <h2>@ViewBag.Message</h2>
            </hgroup>
        </div>
    </section>
}

@model CreateDefect.Domain.QCConnection

<form method="post" action="/Login/Authenticate" id="login_Form">
    <fieldset>
        <legend>Username</legend>
        <ul class="newspaper">
            @Html.Label("Username")
            @Html.TextBox("username_TextBox", "", new { autofocus="" })

            @Html.Label("Password")
            @Html.Password("password_TextBox")
            <input type="button" value="Authenticate" onclick="authenticate()" id="auth_Button" />

            @Html.Label("Domain")
            <select id="domainList" disabled="disabled" onchange="projects()" style="height:31px; width:310px;">
                <option value="0"></option>
            </select>

            @Html.Label("Project")
            <select id="projectList" disabled="disabled" style="height:31px; width:310px" >
                <option value="0"></option>
            </select>
            <input type="button" value="Login" disabled="disabled" id="loginButton" onclick="login()" />
        </ul>
    </fieldset>
</form>


